﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework;

namespace Jewelnoid
{
    class Score : Text2D
    {
        private String scoreText;

        public double scoreNumber;

        public Score (SpriteFont spriteFont, Vector2 position) :
            base(spriteFont, "0", position, Color.White)
        {
            this.scoreText = "Score: ";
            this.scoreNumber = 0;
        }

        public void update()
        {
            this.text = String.Concat(scoreText, scoreNumber);
        }
    }
}
